export function getTenantList(params) {
  return $http.post(window.RPConfig.task + `thirdTenant/selectList`, params)
}

export function addTenantKey(params) {
  return $http.post(window.RPConfig.task + `thirdTenant/insert`, params)
}

export function editTenantKey(params) {
  return $http.post(window.RPConfig.task + `thirdTenant/update`, params)
}

export function deleteKey(params) {
  return $http.post(window.RPConfig.task + `thirdTenant/delete`, params)
}

export function getTenantConfigList(params) {
  return $http.post(window.RPConfig.task + `ThirdTenantConfig/selectList`, params)
}

export function addConfig(params) {
  return $http.post(window.RPConfig.task + `ThirdTenantConfig/insert`, params)
}

export function editConfig(params) {
  return $http.post(window.RPConfig.task + `ThirdTenantConfig/update`, params)
}

export function deleteConfig(params) {
  return $http.post(window.RPConfig.task + `ThirdTenantConfig/delete`, params)
}

//业务回调列表查询接口
export function selectList(params) {
  return $http.post(window.RPConfig.admin + `Callback/selectList`, params)
}

//业务回调重试
export function tryCallback(params) {
  return $http.post(window.RPConfig.admin + `Callback/tryCallback`, params)
}

//消息模板列表
export function mailTemplateList(params) {
  return $http.post(window.RPConfig.admin + `mailTemplate/queryPageList`, params)
}

//邮件模板新增保存
export function saveMailTpl(params) {
  return $http.post(window.RPConfig.admin + `mailTemplate/save`, params)
}

//邮件模板编辑保存
export function saveEditTpl(params) {
  return $http.post(window.RPConfig.admin + `mailTemplate/update`, params)
}

//邮件模板详情查询
export function mailTplDetails(params) {
  return $http.post(window.RPConfig.admin + `mailTemplate/detail/${params}`)
}

//删除邮件模板
export function deleteMailTpl(params) {
  return $http.post(window.RPConfig.admin + `mailTemplate/delete/${params}`)
}

//资源管理列表查询
export function resourceList(params) {
  return $http.post(window.RPConfig.admin + `Resource/selectList`, params)
}

//新增资源
export function insertResource(params) {
  return $http.post(window.RPConfig.admin + `Resource/insert`, params)
}

//修改资源
export function updateResource(params) {
  return $http.post(window.RPConfig.admin + `Resource/update`, params)
}

//删除资源
export function deleteResource(params) {
  return $http.post(window.RPConfig.admin + `Resource/delete`, params)
}
